package com.ruoyi.mixuebingcheng.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.EncryptField;
import com.ruoyi.common.enums.AlgorithmType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 user
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wx_user")
public class User extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 密码
     */
    @EncryptField(algorithm = AlgorithmType.RSA, privateKey = "MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAvwUpblCoehKauqT3wygKh+TgQd7AZhfWrX4WPCR9S/wlaUI4ynqK3ybMH80QbjctQrP/QbzQ6BF0qZ7ym/uXdQIDAQABAkA8HBS4iRsrJtWX7DenKt99efFz6POkbNX6TFYU4Oqo0QlKyv9LYdYGjeIHSQ//y0IumSrBGgMq7A/Zw15A2o71AiEA6uskAU1+511F6Pwv9GT786/G3iwqQByrCSJEh4bMFIcCIQDQKYexEnASFJSM7S4eUmeaUz3ZRRTKWx5jaZ7dezAvIwIhALydHOR63zhOGFJvIOWdqvlGGWrKlQWyvtRvkgwqe3LDAiEAr4EEVafc83GEmZjzVD9X+EaMk93pnH7cjSak+cl+I48CIB6XLpoOvkpf4N85srK3f1CqtojoATVn1RWo1RED32+y")
    private String password;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 性别
     */
    private String sex;
    /**
     * 身份证号
     */
    private String idNumber;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 是否删除
     */
    private Long isDeleted;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private Long xuewang;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date qiandao;
}
